package com.bjpowernode.dao;

import com.bjpowernode.beans.Stu;

import java.util.ArrayList;

/**
 * ClassName:StuDaoImp
 * Package:com.bjpowernode.dao
 * Description: 描述信息
 *
 * @date:2022/4/21 17:43
 * @author:动力节点
 */
public class StuDaoImp implements StuDao{
    @Override
    public void add(Stu stu) {
        DB.stus.add(stu);
    }

    @Override
    public void del(Stu stu) {
        DB.stus.remove(stu);
    }

    @Override
    public void edit(Stu stu) {
        //什么都不做
    }

    @Override
    public ArrayList<Stu> getAll() {
        return DB.stus;
    }
}
